-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed up spaces tests by letting v2 migrations do less work #91829
Conversation
9fd63d9
to
e5fc7fe
Compare
Brings CI down to 1h57 🎉 |
Pinging @elastic/kibana-core (Team:Core) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, what a simple change!
Brings CI down to 1h57 🎉
What's the delta? 😄
Edit: In the linked issue, Spencer said "the overall build time changed from ~1h45m to ~2h10m". So I'm assuming 1h57m is down from 2h10m. Pretty good!
QQ: I noticed that x-pack/test/saved_object_api_integration
is not listed in CODEOWNERS. Do you want to add @elastic/kibana-security
as the code owner for that?
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
4 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
5 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
2 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
@rudolf I'm sorry, I know we've talked about this but what's the status of this backport? |
I was blocked on #94420 but can now backport this to 7.x |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…91829) * Don't mess with v2 migration's index * Speed up spaces tests by letting v2 migrations do less work * Add disabled mapping for spaces so that plugin can be disabled * Add security as codeowners of xpack saved object api integration suite # Conflicts: # .github/CODEOWNERS # packages/kbn-es-archiver/src/lib/indices/kibana_index.ts # x-pack/test/functional/es_archives/saved_objects_management/spaces_integration/mappings.json # x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json
…91829) * Don't mess with v2 migration's index * Speed up spaces tests by letting v2 migrations do less work * Add disabled mapping for spaces so that plugin can be disabled * Add security as codeowners of xpack saved object api integration suite # Conflicts: # .github/CODEOWNERS # x-pack/test/functional/es_archives/saved_objects_management/spaces_integration/mappings.json # x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
1 similar comment
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
…1829) (#94797) * Speed up spaces tests by letting v2 migrations do less work (#91829) * Don't mess with v2 migration's index * Speed up spaces tests by letting v2 migrations do less work * Add disabled mapping for spaces so that plugin can be disabled * Add security as codeowners of xpack saved object api integration suite # Conflicts: # .github/CODEOWNERS # packages/kbn-es-archiver/src/lib/indices/kibana_index.ts # x-pack/test/functional/es_archives/saved_objects_management/spaces_integration/mappings.json # x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json * Apply suggestions from code review * Fix backport for ES _types Co-authored-by: Kibana Machine <[email protected]>
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
…91829) (#94801) * Speed up spaces tests by letting v2 migrations do less work (#91829) * Don't mess with v2 migration's index * Speed up spaces tests by letting v2 migrations do less work * Add disabled mapping for spaces so that plugin can be disabled * Add security as codeowners of xpack saved object api integration suite # Conflicts: # .github/CODEOWNERS # x-pack/test/functional/es_archives/saved_objects_management/spaces_integration/mappings.json # x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json * Fix backport for ES _types Co-authored-by: Kibana Machine <[email protected]>
Summary
When I added v2 migrations to FTR (#89992) I kept all the esArchiver datasets as-is so that we're sure the behaviour is exactly the same between v1 and v2.
However, given the discussion in #91618 we are looking for ways to optimize CI runtime. One way to achieve better performance is to change esArchives so that the v2 migration algorithm has to do less work. Instead of a migration from a legacy or v1 index, the v2 migration will now see a v2 migrations index and will only update mappings and transform documents (skipping three expensive operations create index, clone, reindex).
Checklist
Delete any items that are not applicable to this PR.
For maintainers